package com.example.demo;

import java.util.List;
public class Animals {
    private List<Dog> dog ;

    private Cat cat;

    public void setDog(List<Dog> dog){
        this.dog = dog;
    }
    public List<Dog> getDog(){
        return this.dog;
    }
    public void setCat(Cat cat){
        this.cat = cat;
    }
    public Cat getCat(){
        return this.cat;
    }

}